using UnityEngine;
using System.Collections;

public class PSMove : MonoBehaviour {
	
	public float[] analogs = new float[12];
	public int[] buttons = new int[8];
	public float[] outputs = new float[4];
	public string vrpnString = "psmove0@192.168.13.14:3884";
	public float[] pos = new float[3];
	public float[] quat = new float[4];
	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
		UnityVRPN.getTrackerInfo(vrpnString,0,pos,quat);
		UnityVRPN.getButtonInfo(vrpnString,8,buttons);
		UnityVRPN.getAnalogInfo(vrpnString,12,analogs);
		//UnityVRPN.sendAnalogOutput(vrpnString,4,outputs);
		
		
	}
}
